package com.hospital.search.module.exception.enums;

public enum SearchServiceExpCode {
    SEARCH_SERVICE_ERROR(10001, "搜索服务异常"),
    INSERT_POST_ERROR( 10002, "插入帖子异常" ),
    REPLY_TOO_LONG( 10003, "回复内容过长" ),
    REPLY_EXIST( 10004, "回复已存在" ),
    POST_TYPE_ERROR( 10005, "帖子类型错误"),
    REPLY_TYPE_ERROR( 10006, "回复类型错误" ),
    MESSAGE_TYPE_ERROR( 10007, "消息类型错误" ),
    GET_ALIAS_INDEX_ERROR( 10008, "获取索引别名异常" ),
    ROLLBACK_INDEX_ERROR( 10009, "回滚索引异常" ),
    DELETE_INDEX_ERROR( 10010, "删除索引异常" ),
    SWITCH_INDEX_ERROR( 10011, "切换索引异常"),
    INSERT_REPLY_ERROR( 10012, "插入回复异常" ),
    INDEX_NOT_EXISTS( 10013, "索引不存在" ),
    MESSAGE_ERROR( 10014, "消息错误" ),
    POST_EXIST( 10015, "帖子已存在" );
    public final Integer code;
    public final String message;
    SearchServiceExpCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
